package com.info.zhiduoduo.admin.model.formbean.taxer;

import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PositiveOrZero;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AddEditInviteCodeFormBean {

	@PositiveOrZero
	@ApiModelProperty("id，等于0新增")
	private int id;

	@NotBlank
	@ApiModelProperty("邀请名")
	private String inviteName;

	@Length(max = 4, min = 4)
	@ApiModelProperty("邀请码")
	private String inviteCode;

	@PositiveOrZero
	@ApiModelProperty("金额")
	private BigDecimal amount;

	@ApiModelProperty("备注")
	private String remark;
}
